package com.training.bt.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@TableName("user_tag")
public class UserTag {
    @TableId(type = IdType.AUTO)
    private Long id;

    private Long userId;

    private Long tagId;

    @Builder.Default
    private Integer weight = 1;
}
